package com.scott.ch04.before.student.controller;

import com.scott.ch04.before.student.service.StudentService;

public class StudentController {


    private StudentService service= new StudentService();

    public int sum(int x,int y){
        //StudentService service= new StudentService();

        int sum = service.add(x,y);
        return sum;
    }
    public int sub(int x,int y){
        //StudentService service= new StudentService();

        int sum = service.sub(x,y);
        return sum;
    }
}
